From 65d29e00c7024aa21a7fe15d7fcda6fc7242af8c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 11 Nov 2020 17:45:32 +0000 Subject: [PATCH] a11y: Realize parent ATContext for the stack page Just like for popovers, the stack page is not directly connected on the widget's DOM, so we need to realize the parent ATContext ourselves. --- gtk/a11y/gtkatspicontext.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 98bde0a0e7..8a83ed838d 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -411,7 +411,11 @@ get_parent_context_ref (GtkAccessible *accessible) gtk_accessible_get_at_context (GTK_ACCESSIBLE (page)); if (parent_context != NULL) - res = gtk_at_spi_context_to_ref (GTK_AT_SPI_CONTEXT (parent_context)); + { + gtk_at_context_realize (parent_context); + + res = gtk_at_spi_context_to_ref (GTK_AT_SPI_CONTEXT (parent_context)); + } } else { -- 2.30.2